﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.behavioralmodule.State
{
    public abstract class State
    {
        public abstract void Handle(context con);
    }

    public class ConcreteStateA:State
    {
        public override void Handle(context con)
        {
            con.State = new ConcreteStateB();
        }
    }

    public class ConcreteStateB : State
    {
        public override void Handle(context con)
        {
            con.State = new ConcreteStateA();
        }
    }
}
